package com.list;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Inicio extends Activity implements
OnClickListener {
	private Button grabar;
	private Button listaRolas;
	private Button grabarWave;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.inicio);
	
		grabar = (Button) findViewById(R.id.lanzarGrabar);
		listaRolas = (Button) findViewById(R.id.verLista);
		grabarWave = (Button) findViewById(R.id.grabarWave);
	
		grabarWave .setOnClickListener(this);
		grabar.setOnClickListener(this);
		listaRolas.setOnClickListener(this);
	
	}
	
	
	public void onClick(View v) {
	
		if(v.equals(grabar)){
	
			Intent i = new Intent(this, Comparacion.class);
			startActivity(i);
		}
		if(v.equals(listaRolas)){
			Intent i = new Intent(this, main.class);
			startActivity(i);
		}

		if(v.equals(grabarWave)){
			Intent i = new Intent(this, NGrabacion.class);
			startActivity(i);
		}

	}
}
